package com.szq.netty.service;

import com.szq.netty.domain.User;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.elasticsearch.repository.ElasticsearchRepository;

/**
 * @ClassName: UserRepository
 * @Description:
 * @Author: szq
 * @Date: 2021-11-15 14:32:50
 */
public interface UserRepository extends ElasticsearchRepository<User, String> {

    Page<User> findByName(String name, Pageable pageable);
}
